var NG_display = new function()
{
	this.refreshPopupMenuItems = function(aEvent)
	{
		var selection = NG_util.getActiveDocument().defaultView.getSelection();
		
		//if (sele)
		document.getElementById("")
		//var selection = 
		
		/*
		document.getElementById("CNExtend-enable").hidden = true;
		document.getElementById("CNExtend-disable").hidden = false;
		document.getElementById("")
		("CNExtend-layouts", function(item) { item.hidden = false; }, me, 'menu');
			if (CNExtend_main.atCN(CNExtend_util.getActiveDocument())) {
				CNExtend_util.mapTaggedElements("CNExtend-contextlayouts", function(item) { item.hidden = false; }, me);
			} else {
				CNExtend_util.mapTaggedElements("CNExtend-contextlayouts", function(item) { item.hidden = true; }, me);
			}
			if (CNExtend_global.selfTables.getTableIndex(CNExtend_util.getActiveDocument()) != -1) {
				CNExtend_util.mapTaggedElements("LayoutEditor", function(item) { item.hidden = false; }, me, 'menuitem');
			} else {
				CNExtend_util.mapTaggedElements("LayoutEditor", function(item) { item.hidden = true; }, me, 'menuitem');
			}

		var nodeType = null;
		backgroundData = null;
		frameData = null;
		if (target) {
			// Lookup the node in our stored data
			var data = RequestList.getDataForNode(target);
			var targetNode = null;
			if (data) {
				targetNode = data[0];
				data = data[1];
			}
			nodeData = data;
			if (data && !data.filter)
				nodeType = data.typeDescr;
	
			var wnd = (target ? target.ownerDocument.defaultView : null);
			var wndData = (wnd ? RequestList.getDataForWindow(wnd) : null);
	
			if (wnd.frameElement)
				frameData = RequestList.getDataForNode(wnd.frameElement, true);
			if (frameData)
				frameData = frameData[1];
			if (frameData && frameData.filter)
				frameData = null;
	
			if (nodeType != "IMAGE") {
				// Look for a background image
				var imageNode = target;
				while (imageNode && !backgroundData) {
					if (imageNode.nodeType == imageNode.ELEMENT_NODE) {
						var bgImage = null;
						var style = wnd.getComputedStyle(imageNode, "");
						bgImage = abpImageStyle(style, "background-image") || abpImageStyle(style, "list-style-image");
						if (bgImage) {
							backgroundData = wndData.getLocation(abp.policy.type.BACKGROUND, bgImage);
							if (backgroundData && backgroundData.filter)
								backgroundData = null;
						}
					}
	
					imageNode = imageNode.parentNode;
				}
			}
		
		}
		*/
	}
}